/**
 * Created by minigci.he on 16/9/22.
 */
console.log('------------------------')
console.log('test2')

console.log([1,2,3,4,5].copyWithin(0,3))    // [4, 5, 3, 4, 5]
console.log([1,2,3,4,5].copyWithin(0,3,4))  // [4, 2, 3, 4, 5]
console.log([1,2,3,4,5].copyWithin(0,-2, -1))   // [4, 2, 3, 4, 5]
console.log([].copyWithin.call({
    3: 1,
    length: 5
}, 0, 3))       // {0: 1, 3: 1, length: 5}
var i32a = new Int32Array([1,2,3,4,5])
console.log(i32a.copyWithin(0, 2))      // [3, 4, 5, 4, 5]


